-- $Id: ModOptions.lua 4642 2009-05-22 05:32:36Z carrepairer $
--  Custom Options Definition Table format

--  NOTES:
--  - using an enumerated table lets you specify the options order

--
--  These keywords must be lowercase for LuaParser to read them.
--
--  key:      the string used in the script.txt
--  name:     the displayed name
--  desc:     the description (could be used as a tooltip)
--  type:     the option type ('list','string','number','bool')
--  def:      the default value
--  min:      minimum value for number options
--  max:      maximum value for number options
--  step:     quantization step, aligned to the def value
--  maxlen:   the maximum string length for string options
--  items:    array of item strings for list options
--  section:  so lobbies can order options in categories/panels
--  scope:    'all', 'player', 'team', 'allyteam'      <<< not supported yet >>>
--
 
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
--  Example ModOptions.lua 
--

local options={
    {
       key="game_modes",
       name="Game Modes",
       desc="Game Modes",
       type="section",
    },
    {
       key="game_options",
       name="Options",
       desc="Options",
       type="section",
    },

   {
      key = "deathmode",
      name = "Game End Mode",
      desc = "What it takes to eliminate a Team",
      type = "list",
      def = "allyzerounits",
      items = {
         { key = "none", name = "Never Die", desc = "All Teams will stay alive regardless of what happends, gameover will never arrive." },
         { key = "teamzerounits", name = "Team Death on Zero Units", desc = "The Team will die when it has 0 units."},
         { key = "allyzerounits", name = "AllyTeam Death on Zero units", desc = "The Team will die when every Team in his AllyTeam have 0 units." },
      }
   },
   {
      key    = "shareddynamicalliancevictory",
      name   = "Dynamic Ally Victory",
      desc   = "Ingame alliance should count for game over condition.",
      type   = "bool",
      def    = false,
    },

    {
		key    = "mo_coop",
		name   = "Cooperative Mode",
		desc   = "Adds an extra commander for comsharing teams",
		type   = "bool",
		def    = false,
		section= "game_modes",
    },
    {
		key    = "mo_noowner",
		name   = "FFA Mode",
		desc   = "Units with no player control are instantly removed/destroyed",
		type   = "bool",
		def    = false,
		section= "game_modes",
    },
    {
		key    = "mo_noshare",
		name   = "No Sharing To Enemies",
		desc   = "Prevents players from giving units or resources to enemies",
		type   = "bool",
		def    = true,
		section= "game_options",
    },
    {
		key    = "mo_enemywrecks",
		name   = "Show Enemy Wrecks",
		desc   = "Gives you LOS of enemy wreckage",
		type   = "bool",
		def    = true,
		section= "game_options",
    },
}
return options
